package com.imc.griebeler;

import com.imc.griebeler.appliance.Blender;
import com.imc.griebeler.appliance.Oven;
import com.imc.griebeler.appliance.Toaster;
import com.imc.griebeler.power.BlenderAdapter;
import com.imc.griebeler.power.MultiPowerPoint;
import com.imc.griebeler.power.OvenAdapter;
import com.imc.griebeler.power.PowerPoint;
import com.imc.griebeler.power.ToasterAdapter;

public class Main {
	public static void main(String[] args) {
		PowerPoint multi = new MultiPowerPoint(new PowerPoint[] {
				new BlenderAdapter(new Blender()),
				new OvenAdapter(new Oven()),
				new ToasterAdapter(new Toaster())
				});
		
		System.out.println("Turning on all appliances");
		multi.on();
		System.out.println("----");
		System.out.println("Turning off all appliances");
		multi.off();
	}
}
